package com.kfm.jdbc.day0328;


import java.io.Closeable;
import java.io.IOException;

public class Student extends Person implements Closeable, IPerson {

    private String name;

    Integer age;

    protected String gender;

    public String address;


    Student(){}

    protected Student(int a){
        System.out.println("Student(int)" + a);
    }

    protected Student(Integer a){}

    Student(String a){}

    private Student(double a){
        System.out.println("private Student(double a)");
    }

    public class InnerClass{}

    static class StaticInnerCLass{}

    private void methodA(){}

    void methodB(){}

    protected void methodC(){}

    public void methodD(){}

    @Override
    public void say() {
        System.out.println("say()");
    }

    public void show(String name){
        System.out.println("show() " + name);
    }

    public static void staticMethod(){
        System.out.println("Student::staticMethod");
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public void close() throws IOException {

    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age='" + age + '\'' +
                ", gender='" + gender + '\'' +
                ", address='" + address + '\'' +
                "} " + super.toString();
    }
}

class Person {

    private String sName;

    String sAge;

    protected String sGender;


    public String sAddress;

    private void sMethodA(){}

    void sMethodB(){}

    protected void sMethodC(){}

    public void sMethodD(){}
}

interface IPerson {

    void say();
}
